I need to write a script that creates traces to each requirement listed in an object. Multiple requirements will be listed in the object. How do I grab each of those requirements individually?
|
Re: Search String
First off, everyone agrees you should have one requirement per object. You cannot track 'requirements' when they are mixed with others in a paragraph. For one thing, how do you assign an ID?
Does the 'Bli' sentence belong with the 'Bla' or the 'Blu' requirement?
Your code will iterate sentances and join them together into 'requirements'.
|
Re: Search String In this case you would first cache all target modules to a string skip list using the requirement identifier as a key and the object as the value. Then you will iterate all objects of your requirement module, split the identifiers by a regular expression (see DXL help example for regular expressions), find the target object in the cache and then make a link. Hope this raw description will help. Regards, Mathias Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS |